<<<<<<< HEAD
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

const fetch = require('isomorphic-fetch');

var init = {
    method: "POST",
    body: "age=12"
};

_asyncToGenerator(function* () {
    try {
        var data = yield fetch("http://192.168.253.41:8081/login", init);
        var json = yield data.text();
        onGetEmojis(json);
    } catch (e) {
        console.log(e);
    }
})();

function onGetEmojis(json) {
    // TODO
    console.log(json);
}
=======
var getPerson = function (age, name) {
    return {
        age,
        name
    };
};

var ccf = getPerson(14, 'ccf');
console.log(ccf);
>>>>>>> ef476f7268718891db8d6356e4a7240952af1e6b
